<?php

namespace app\validate;

use think\Validate;

class ClubMemberValidate extends Validate
{
    protected $rule = [
        'club_id' => 'require|number|gt:0',
        'user_id' => 'require|number|gt:0'
    ];

    protected $message = [
        'club_id.require' => '社团ID不能为空',
        'club_id.number'  => '社团ID必须是数字',
        'club_id.gt'     => '社团ID必须大于0',
        'user_id.require'=> '用户ID不能为空',
        'user_id.number' => '用户ID必须是数字',
        'user_id.gt'    => '用户ID必须大于0'
    ];
}